package com.ipartek.desarrollo.beanHibernate;

// Generated 26-feb-2014 21:38:33 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Documentoshobetuz generated by hbm2java
 */
@Entity
@Table(name = "documentoshobetuz")
public class Documentoshobetuz implements java.io.Serializable {

	private Integer docHobId;
	private Io io;
	private String docHobRuta;
	private Boolean docHobEnviado;
	private Date docHobFecha;

	public Documentoshobetuz() {
	}

	public Documentoshobetuz(Io io, String docHobRuta, Boolean docHobEnviado,
			Date docHobFecha) {
		this.io = io;
		this.docHobRuta = docHobRuta;
		this.docHobEnviado = docHobEnviado;
		this.docHobFecha = docHobFecha;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "DocHobId", unique = true, nullable = false)
	public Integer getDocHobId() {
		return this.docHobId;
	}

	public void setDocHobId(Integer docHobId) {
		this.docHobId = docHobId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IOId")
	public Io getIo() {
		return this.io;
	}

	public void setIo(Io io) {
		this.io = io;
	}

	@Column(name = "DocHobRuta", length = 50)
	public String getDocHobRuta() {
		return this.docHobRuta;
	}

	public void setDocHobRuta(String docHobRuta) {
		this.docHobRuta = docHobRuta;
	}

	@Column(name = "DocHobEnviado")
	public Boolean getDocHobEnviado() {
		return this.docHobEnviado;
	}

	public void setDocHobEnviado(Boolean docHobEnviado) {
		this.docHobEnviado = docHobEnviado;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DocHobFecha", length = 19)
	public Date getDocHobFecha() {
		return this.docHobFecha;
	}

	public void setDocHobFecha(Date docHobFecha) {
		this.docHobFecha = docHobFecha;
	}

}
